package 常用类.enum枚举类.test01;

public class EnumTest01 {
    public static void main(String[] args) {
        System.out.println(divide(10,5) ? "计算成功" : "计算失败");
    }

    private static boolean divide(int a,int b) {
        try{
            int c = a/b;
            return true;
        }catch(Exception e){
            return false;
        }
    }
}
